package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Mould_OnOff", description = "模具上下模记录")
@TableName(value = "Mould_OnOff")
public class MouldOnOff extends FBaseEntity implements Serializable {


    
    @NotNull(message="[模具id]不能为空")
    @ApiModelProperty("模具id")
    @TableField(value = "moldId")
    private Long moldId;
    
    @ApiModelProperty("生产资源ID")
    @TableField(value = "resourceId")
    private Long resourceId;
    
    @ApiModelProperty("派工单Id")
    @TableField(value = "dispatchId")
    private Long dispatchId;
    
    @ApiModelProperty("上模员工ID")
    @TableField(value = "onPersonId")
    private Long onPersonId;
    
    @ApiModelProperty("上模日期")
    @TableField(value = "onDate")
    private Date onDate;
    
    @ApiModelProperty("下模员工ID")
    @TableField(value = "offPersonId")
    private Long offPersonId;
    
    @ApiModelProperty("下模日期")
    @TableField(value = "offDate")
    private Date offDate;
    
    @ApiModelProperty("状态")
    @TableField(value = "status")
    private Long status;
    
    @NotBlank(message="[使用次数]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("使用次数")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "useQty")
    private String useQty;
    
    @ApiModelProperty("使用时间")
    @TableField(value = "useTime")
    private Date useTime;






}

